import { Routes, Route } from 'react-router-dom'
import Translate from './view/translate'
import Clear from './view/clear'
import { Navigate } from 'react-router-dom'
function MainRouter() {
  return (
    <>
      <Routes>
        <Route path='/' element={<Navigate to="/translate" />}/>
        <Route path='/translate' element={<Translate></Translate>} />
        <Route path='/clear' element={<Clear></Clear>} />
      </Routes>
    </>
  )
}

export default MainRouter
